import { CustomError } from "./custom-error";

export class DatabaseConnectionError extends CustomError{
	statusCode = 500;	
	reason = "数据库连接失败";
	constructor(){
		super("数据库连接失败");
		Object.setPrototypeOf(this, DatabaseConnectionError.prototype);
	}
	serializeErrors() {
		return [{ message:this.reason }];
	}
}
